package ysu.sxm.ptjc.Controller;

import com.alibaba.fastjson.JSONArray;
import org.springframework.web.bind.annotation.*;
import ysu.sxm.ptjc.Domin.OxidationLineReq;
import ysu.sxm.ptjc.Service.GetOxidationLineService;
import ysu.sxm.ptjc.Domin.baseOutput;

import javax.annotation.Resource;
import java.text.ParseException;
import java.util.List;

@RestController
@RequestMapping("/oxidationLine")
public class GetOxidationLineServlet {
    @Resource
    GetOxidationLineService getOxidationLine;
    @PostMapping("/getDate")
    String lists(@RequestBody OxidationLineReq oxidationLineReq) throws ParseException {
        return JSONArray.toJSONString(getOxidationLine.getDate(oxidationLineReq));

    }
}
